using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class FMS_FlowProcessMap : EntityTypeConfiguration<FMS_FlowProcess>
	{
		public FMS_FlowProcessMap()
		{
			// Primary Key
			this.HasKey(t => t.Id);

			// Properties
			this.Property(t => t.Operator)
				.HasMaxLength(20);
				
			this.Property(t => t.OperateDesc)
				.HasMaxLength(500);
				
			this.Property(t => t.AudiPeople)
				.HasMaxLength(200);
				
			this.Property(t => t.RoleList)
				.HasMaxLength(200);
				
			// Table & Column Mappings
			this.ToTable("FMS_FlowProcess");
			this.Property(t => t.Id).HasColumnName("Id");
			this.Property(t => t.BizOrderId).HasColumnName("BizOrderId");
			this.Property(t => t.BizOrderType).HasColumnName("BizOrderType");
			this.Property(t => t.FlowId).HasColumnName("FlowId");
			this.Property(t => t.FlowPointId).HasColumnName("FlowPointId");
			this.Property(t => t.Status).HasColumnName("Status");
			this.Property(t => t.IsCross).HasColumnName("IsCross");
			this.Property(t => t.BeginPoint).HasColumnName("BeginPoint");
			this.Property(t => t.Operator).HasColumnName("Operator");
			this.Property(t => t.OperateDesc).HasColumnName("OperateDesc");
			this.Property(t => t.AudiPeople).HasColumnName("AudiPeople");
			this.Property(t => t.RoleList).HasColumnName("RoleList");
			this.Property(t => t.CreateUser).HasColumnName("CreateUser");
			this.Property(t => t.UpdateUser).HasColumnName("UpdateUser");
			this.Property(t => t.CreateTime).HasColumnName("CreateTime");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
			this.Property(t => t.CreateDeptId).HasColumnName("CreateDeptId");
			this.Property(t => t.UpdateDeptId).HasColumnName("UpdateDeptId");
		}
	}
}

